import request from '@/utils/request'

// 查询废旧轮胎列表
export function listWasteTire(query) {
  return request({
    url: '/mes/bm/wasteTire/list',
    method: 'get',
    params: query
  })
}

// 查询废旧轮胎详细
export function getWasteTire(id) {
  return request({
    url: '/mes/bm/wasteTire/' + id,
    method: 'get'
  })
}

// 新增废旧轮胎
export function addWasteTire(data) {
  return request({
    url: '/mes/bm/wasteTire',
    method: 'post',
    data: data
  })
}

// 修改废旧轮胎
export function updateWasteTire(data) {
  return request({
    url: '/mes/bm/wasteTire',
    method: 'put',
    data: data
  })
}

// 删除废旧轮胎
export function delWasteTire(id) {
  return request({
    url: '/mes/bm/wasteTire/' + id,
    method: 'delete'
  })
}
